//
//  iMinistryAppDelegate.h
//  iMinistry
//
//  Created by Jose Luis Garza, Jr on 2/1/11.
//  Copyright 2011 none. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import <Three20/Three20.h>
@class iMinistryController;
@class BlueViewController;

@interface iMinistryAppDelegate : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
	iMinistryController *rootController;
	BlueViewController *blueViewController;
    
@private
    NSManagedObjectContext *managedObjectContext_;
    NSManagedObjectModel *managedObjectModel_;
    NSPersistentStoreCoordinator *persistentStoreCoordinator_;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet iMinistryController *rootController;
@property (nonatomic, retain) IBOutlet BlueViewController *blueViewController;

@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (NSURL *)applicationDocumentsDirectory;
- (void)saveContext;

@end

